package com.fqgj.sentry.policy.dao;

import com.fqgj.common.base.BaseMapper;
import com.fqgj.sentry.policy.entity.PcEventEntity;

import java.util.List;

/**
* User: yujianfu
* Date: 2017-07-12
* Time: 09:30:55.296
*/

public interface PcEventDao extends BaseMapper<PcEventEntity> {
    /**
     * 通过商户id查询事件
     * @param merchantId
     * @param code
     * @param name
     * @return
     */
    List<PcEventEntity> selectEventList(Long merchantId, String code, String name);


    List<PcEventEntity> selectListByEventIds(List<Long> eventIds);

    /**
     *
     * @param merchantId
     * @return
     */
    List<PcEventEntity> selectByMerchantId(Long merchantId);

    /**
     * 商户id  和商户code 查询
     *
     * @param merchantId
     * @param code
     * @return
     */
    PcEventEntity selectByMerchantIdAndCode(Long merchantId, String code);

}